/*
 * Copyright (c)  2018, XiQiao
 * All rights reserved. 
 *
 * Id:ExcelReadHandler.java   2018-07-26 20:54 wanglijun
 */
package io.marmot.poi.handler;

import io.marmot.poi.domain.ErrorField;

import java.util.List;

/**
 * <p>
 * Title:
 * </p>
 * <p>
 * Description:
 * </p>
 * <p>
 * Copyright: Copyright (c) 2018
 * </p>
 * <p>
 * Company: XiQiao
 * </p>
 *
 * @author: wanglijun
 * @create: 2018-07-26 20:54
 * @version：1.0
 */
public interface ExcelReaderHandler<T> {
    /***
     *
     * @param sheetIndex
     * @param rowIndex
     * @param entity
     */
    void onSuccess(int sheetIndex, int rowIndex, T entity);

    /***
     *
     * @param sheetIndex
     * @param rowIndex
     * @param errorFields
     */
    void onError(int sheetIndex, int rowIndex, List<ErrorField> errorFields);
}
